package com.fingard.dsp.bank.reqrespobj.billpool;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.xml.XmlTextWriter;

//  超短贷信息查询
public class RetAtsB315LoanDetail extends RetAtsBase{
//    帐号
    public String AccountNum;
//    币种
    public String PayCur;
//    借据号
    public String DebitNo;
//    贷款金额
    public String LoanBal;
//    利率
    public String Interest;
//    贷款日期
    public String StartDate;
//结束日期
    public String EndDate;
//0：利随本清 1：到期还本分期付息 3：按月等额还款 4：按月等额还本 5：按季等额还款 6：按季等额还
    public String RepayType;
//01：普通贷款 11：贷款销户 02：贴现 12：贴现销户 21：逾期贷款 31：呆滞贷款 41：呆账贷款 51：已核销贷款
    public String State;
//贷款额度
    public String LoanLimit;

    public void writeRetAtsXml(){
        retXmlWriter.writeStartElement("DetailRecord");
        retXmlWriter.writeElementString("AccountNum",AccountNum);
        retXmlWriter.writeElementString("PayCur",PayCur);
        retXmlWriter.writeElementString("DebitNo",DebitNo);
        retXmlWriter.writeElementString("LoanBal",LoanBal);
        retXmlWriter.writeElementString("Interest",Interest);
        retXmlWriter.writeElementString("StartDate",StartDate);
        retXmlWriter.writeElementString("EndDate",EndDate);
        retXmlWriter.writeElementString("RepayType",RepayType);
        retXmlWriter.writeElementString("State",State);
        retXmlWriter.writeElementString("LoanLimit", LoanLimit);
        retXmlWriter.writeEndElement();
    }

    public RetAtsB315LoanDetail(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();//用于输出返回ATS的XML报文
    }
}
